package me.militch.demo;

import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.Gravity;
import android.view.View;
import android.widget.Button;
import android.widget.NumberPicker;

import java.util.Arrays;

public class MainActivity extends AppCompatActivity {
    private Button mainBtn;
    private FootSelectView footSelectView;
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        mainBtn = (Button) findViewById(R.id.main_btn);
        footSelectView = new FootSelectView(this);
        footSelectView.setStrings(new String[]{"中国工商银行","招商银行","建设银行","邮政储蓄银行","中信银行","花旗银行","农业银行"});
        mainBtn.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                footSelectView.show(MainActivity.this,R.layout.activity_main);
            }
        });
    }
}
